package club.hicode.daydayup;

import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.ApplicationContext;
import org.springframework.retry.annotation.EnableRetry;

@SpringBootApplication
@EnableRetry
@ServletComponentScan
public class DayDayUpApplication implements CommandLineRunner {


	public static void main(String[] args) throws InterruptedException {
		ApplicationContext app = SpringApplication.run(DayDayUpApplication.class, args);

		//		while(true){
		//			KafkaSender sender = app.getBean(KafkaSender.class);
		//			sender.sendMessage();
		//			Thread.sleep(500);
		//		}
	}

	@Override
	public void run(String... args) throws Exception {


	}
}
